package com.bf.electroplating.pojo.enums;

import lombok.Data;
import lombok.Getter;

/**
 * 污水厂id枚举
 */
@Getter
public enum OutfallEnums {

    XY("1", "新禹"),
    BS("2", "碧水"),

    ;

    private final String code;
    private final String desc;

    private OutfallEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getDesc(String code) {
        for (IndustryTypeEnum item : IndustryTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }
}
